<template>
  <div>
        <button @click="isShow = !isShow">显示/隐藏</button>
        <transition-group  appear
            name="animate__animated animate__bounce"
            enter-active-class="animate__rubberBand"
            leave-active-class="animate__backOutRight"
        >
            <h2 v-show="isShow" key="1">北极星</h2>
            <!-- <h2 v-show="!isShow" key="2">联盟</h2> -->
        </transition-group>
  </div>
</template>
<script>
import 'animate.css'
export default {
    data(){
        return{
            isShow: true
        }
    }
}
</script>
<style scoped>
    h2{
        
    }
    
</style>